package com.pm.swagger.mvc;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


/**
 * Created by cjwfuture on 2021/6/8
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        SwaggerResourceUtil.htmlResource((a, b) -> registry.addResourceHandler(a).addResourceLocations(b));
    }
}
